Skip to content

Set http.version=HTTP/1.1 in supports_gvfs_protocol() #759

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 27, 2025

Conversation

dscho
Copy link
Member

@dscho dscho commented May 26, 2025

The way the gvfs-helper command operates is apparently incompatible with HTTP/2, that's why #754 tried to enforce HTTP/1.1 in Scalar clones accessing Azure Repos.

However, this fix was incomplete for the scalar clone part because it made the HTTP/1.1 enforcement contingent on the test whether the remote repository supports the GVFS protocol or not, and that test did not enforce HTTP/1.1.

Let's fix that Catch-22 by enforcing HTTP/1.1 usage during that GVFS Protocol capability test.

The way the `gvfs-helper` command operates is apparently incompatible
with HTTP/2, that's why #754 tried
to enforce HTTP/1.1 in Scalar clones accessing Azure Repos.

However, this fix was incomplete for the `scalar clone` part because it
made the HTTP/1.1 enforcement contingent on the test whether the remote
repository supports the GVFS protocol or not, and that test did _not_
enforce HTTP/1.1.

Let's fix that Catch-22 by enforcing HTTP/1.1 usage during that GVFS
Protocol capability test.

Reported-by: Derrick Stolee <stolee@gmail.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@dscho dscho requested a review from derrickstolee May 26, 2025 16:16
@dscho dscho self-assigned this May 26, 2025
Copy link

@derrickstolee derrickstolee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's nice that we can be explicit here, making this an obviously-correct change that will not affect the other code paths.

@dscho dscho merged commit bd63763 into vfs-2.49.0 May 27, 2025
119 checks passed
@dscho dscho deleted the fix-752-more-completely branch May 27, 2025 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants